package com.study.model.book;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableField;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.study.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yubao
 * @since 2022-10-30
 */
@Data
@ApiModel(description = "图书信息")
@TableName("book")
public class Book extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 书籍 ISBN
     */
    @ApiModelProperty(value = "书籍 ISBN")
    @TableField("isbn")
    private String isbn;

    /**
     * 书籍类别
     */
    @ApiModelProperty(value = "书籍类别")
    @TableField("category_id")
    private Long categoryId;

    /**
     * 书名
     */
    @ApiModelProperty(value = "书名")
    @TableField("name")
    private String name;

    /**
     * 作者
     */
    @ApiModelProperty(value = "作者")
    @TableField("author")
    private String author;

    /**
     * 出版社
     */
    @ApiModelProperty(value = "出版社")
    @TableField("publisher")
    private String publisher;

    /**
     * 出版时间
     */
    @ApiModelProperty(value = "出版时间")
    @TableField("publish_date")
    private Date publishDate;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @TableField("img_url")
    private String imgUrl;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    @TableField("summary")
    private String summary;

    /**
     * 总数量
     */
    @ApiModelProperty(value = "总数量")
    @TableField("all_num")
    private Integer allNum;

    /**
     * 剩余数量
     */
    @ApiModelProperty(value = "剩余数量")
    @TableField("last_num")
    private Integer lastNum;

    /**
     * 标签
     */
    @ApiModelProperty(value = "标签")
    @TableField("tags")
    private String tags;

    /**
     * 图书状态(0 :下架，1:上架)
     */
    @ApiModelProperty(value = "图书状态(0 :下架，1:上架)")
    @TableField("status")
    private Integer status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField("creater")
    private String creater;


    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @TableField("updater")
    private String updater;
}
